package com.zhinan.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.List;

/**
 * @Description: 菜单VO类
 * @Author: ZhiNan
 * @Date: 2023-04-07 16:40
 * @Version: 1.0
 */
@Data
@TableName("t_menu")
public class MenuVo {


    private Long id;
    /**
     * 父级菜单ID
     */
    @JsonIgnore
    private Long parentId;
    /**
     * 菜单标题
     */
    private String title;

    /**
     * 菜单图标
     */
    private String icon;
    /**
     * 类型,0-目录;1-菜单
     */
    private Integer type;
    /**
     * 当type为1的时候生效，_iframe正常打开,_blank新建浏览器标签页
     */
    private String openType;
    /**
     * 菜单路径
     */
    private String href;

    @TableField(exist = false)
    private List<MenuVo> children;
}
